package com.beamfield.dao.mixstation;

import com.beamfield.model.MixProductMixratio;
import com.beamfield.modelVo.ConcreteConsMixratioVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface MixProductMixratioMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MixProductMixratio record);

    int insertSelective(MixProductMixratio record);

    MixProductMixratio selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MixProductMixratio record);

    int updateByPrimaryKey(MixProductMixratio record);

    List<MixProductMixratio> selectByProductConcreteId(@Param("mix_product_concrete_id")Long mix_product_concrete_id);

    List<MixProductMixratio> selectBySuppliesId(@Param("supplies_id")String supplies_id);

    List<ConcreteConsMixratioVo> selectPage(@Param("offset") String offset, @Param("limit") String limit, @Param("concreteRearatioId") String concreteRearatioId);

    long countPage(@Param("concreteRearatioId") String concreteRearatioId);
}